package com.iwhalecloud.citybrain.flow.platform.manager.domain.repository;

import com.iwhalecloud.citybrain.flow.platform.manager.domain.model.FlowTitleExpression;
import org.flowable.engine.impl.persistence.entity.ExecutionEntity;
import org.flowable.task.service.impl.persistence.entity.TaskEntity;

import java.util.List;

/**
 * @author: lzb
 * @date: 2021/11/9 17:04
 */
public interface FlowTitleExpressionResultRepository {


    /**
     * 批量添加自定义标题表达式结果数据
     *
     * @param deployId 部署ID
     */
    void batchInsert(String deployId, ExecutionEntity executionEntity);

    /**
     * @param processInstanceId 流程实例id
     * @param activityId        节点编码
     * @return string
     */
    String getTitleExpressionResultByProcessInstanceIdAndActivityId(String processInstanceId, String activityId);


    void analysisTitleExpression(TaskEntity taskEntity);
}
